﻿
 
 

// ******************************************************
// 这段代码是自动生成的
// 修改里面的代码，下次生成的时候会被覆盖
// ******************************************************
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.ServiceModel;
using Sharp.Application;
using System.ServiceModel.Activation;
using Sharp.DataTransferObject.CMS;
using Sharp.Infrastructure.Search;
using Sharp.Infrastructure;
using Sharp.Infrastructure.IoC;
using Sharp.Infrastructure.Interfaces;
using Sharp.ServiceContracts.CMS;

namespace Sharp.Services.CMS
{
	[DebuggerStepThrough]
	[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
	public class CMSService : ICMSService
	{
		private readonly ICMSService _impl = ServiceLocator.Instance.GetService<ICMSService>();
				public Result SaveVIU(VIUDTO dtomodel)
		{
			try
			{
				return _impl.SaveVIU(dtomodel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<VIUDTO> GetVIU(Guid id)
		{
			try
			{
				return _impl.GetVIU(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<VIUDTO> GetVIUPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetVIUPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteVIUs(Guid ids)
		{
			try
			{
				return _impl.DeleteVIUs(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteCategories(Guid[] ids)
		{
			try
			{
				return _impl.DeleteCategories(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveCategory(VIUCategoryDTO dtoModel)
		{
			try
			{
				return _impl.SaveCategory(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<VIUCategoryDTO> GetCategoryInfo(Guid id)
		{
			try
			{
				return _impl.GetCategoryInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<IEnumerable<VIUCategoryDTO>> GetCategoryList(Boolean treeData)
		{
			try
			{
				return _impl.GetCategoryList(treeData);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<VIUCategoryDTO> GetCategoryPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetCategoryPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteFields(Guid[] ids)
		{
			try
			{
				return _impl.DeleteFields(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveField(FieldDTO dtoModel)
		{
			try
			{
				return _impl.SaveField(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<FieldDTO> GetFieldInfo(Guid id)
		{
			try
			{
				return _impl.GetFieldInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<IEnumerable<FieldDTO>> GetFieldList(Boolean treeData)
		{
			try
			{
				return _impl.GetFieldList(treeData);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteTags(Guid[] ids)
		{
			try
			{
				return _impl.DeleteTags(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveTag(TagDTO dtoModel)
		{
			try
			{
				return _impl.SaveTag(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<TagDTO> GetTagInfo(Guid id)
		{
			try
			{
				return _impl.GetTagInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<TagDTO> GetTagPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetTagPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveBatchImportTag(TagBatchImportDTO dtoModel)
		{
			try
			{
				return _impl.SaveBatchImportTag(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result CheckInVIU(Guid viuId, Boolean isChecked, String remark)
		{
			try
			{
				return _impl.CheckInVIU(viuId, isChecked, remark);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result CheckInSpecial(ApproveHistory4SpecialDTO vm)
		{
			try
			{
				return _impl.CheckInSpecial(vm);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveArticle(ArticleDTO dtoModel)
		{
			try
			{
				return _impl.SaveArticle(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<ArticleDTO> GetArticleInfo(Guid id)
		{
			try
			{
				return _impl.GetArticleInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<ArticleDTO> GetArticlePaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetArticlePaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteArticles(Guid[] ids)
		{
			try
			{
				return _impl.DeleteArticles(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteSpecials(Guid[] ids)
		{
			try
			{
				return _impl.DeleteSpecials(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveSpecial(SpecialDTO dtoModel)
		{
			try
			{
				return _impl.SaveSpecial(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<SpecialDTO> GetSpecialInfo(Guid id)
		{
			try
			{
				return _impl.GetSpecialInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<SpecialDTO> GetSpecialPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetSpecialPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteColumns(Guid[] ids)
		{
			try
			{
				return _impl.DeleteColumns(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveColumn(ColumnDTO dtoModel)
		{
			try
			{
				return _impl.SaveColumn(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<ColumnDTO> GetColumnInfo(Guid id)
		{
			try
			{
				return _impl.GetColumnInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<ColumnDTO> GetColumnPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetColumnPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<IList<ColumnDTO>> GetColumns()
		{
			try
			{
				return _impl.GetColumns();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveGather(GatherDTO dtoModel)
		{
			try
			{
				return _impl.SaveGather(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<GatherDTO> GetGatherInfo(Guid id)
		{
			try
			{
				return _impl.GetGatherInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<GatherDTO> GetGatherPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetGatherPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteGathers(Guid[] ids)
		{
			try
			{
				return _impl.DeleteGathers(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public ClassGatherResultDTO GatherCategoryPage(CategoryParameterDTO cp)
		{
			try
			{
				return _impl.GatherCategoryPage(cp);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public ContentPageGatherResultDTO GatherPage(WebParameterDTO wp)
		{
			try
			{
				return _impl.GatherPage(wp);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<IList<GatherDTO>> GetGathers()
		{
			try
			{
				return _impl.GetGathers();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public ContentPageGatherResultDTO DecomposePage(String strUrl, Guid gatherId, String webhtml)
		{
			try
			{
				return _impl.DecomposePage(strUrl, gatherId, webhtml);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
	}
}